// 报关行
import request from "@/utils/https/requests";
// 列表
export function logInfoList(data: any) {
  return request({
    url: "/logInfo/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddLogInfo(data: any) {
  return request({
    url: "/logInfo/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModLogInfo(data: any) {
  return request({
    url: `/logInfo/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function logInfoDetail(id: string) {
  return request({
    url: `/logInfo/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteLogInfo(id: string) {
  return request({
    url: `/logInfo/postDelete/${id}`,
    method: "post",
  });
}

// 绑定报关行
export function bindCustomBrokerAction(data: any) {
  return request({
    url: "/logInfo/bindCustomBrokerAction",
    method: "post",
    data,
  });
}
// 绑定仓库
export function bindCentralWarehouseAction(data: any) {
  return request({
    url: "/logInfo/bindCentralWarehouseAction",
    method: "post",
    data,
  });
}

// 绑定车队
export function bindFleetsAction(data: any) {
  return request({
    url: "/logInfo/bindFleetsAction",
    method: "post",
    data,
  });
}
// 绑定货代公司
export function bindFreightForwardingAction(data: any) {
  return request({
    url: "/logInfo/bindFreightForwardingAction",
    method: "post",
    data,
  });
}
